package com.sew.sewweb.service.impl;

import com.sew.sewweb.common.utils.PageUtils;
import com.sew.sewweb.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.sew.sewweb.mapper.CtpCommentAllMapper;
import com.sew.sewweb.bean.CtpCommentAllEntity;
import com.sew.sewweb.service.CtpCommentAllService;


@Service("ctpCommentAllService")
public class CtpCommentAllServiceImpl extends ServiceImpl<CtpCommentAllMapper, CtpCommentAllEntity> implements CtpCommentAllService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CtpCommentAllEntity> page = this.page(
                new Query<CtpCommentAllEntity>().getPage(params),
                new QueryWrapper<CtpCommentAllEntity>()
        );

        return new PageUtils(page);
    }

}